FROM ubuntu:18.04 as build

WORKDIR /root
COPY access-manager .
COPY cert-importer .
COPY ./lib  /usr/local/lib
COPY liblic_release.so /usr/local/lib
COPY ./access-manager-*.yaml .

RUN chmod 550 access-manager cert-importer &&\
    echo 'umask 027' >> /etc/profile && \
    echo 'source /etc/profile' >> ~/.bashrc

ENV LD_LIBRARY_PATH=/usr/local/lib

